package im.xz.cn.xiacore.tpPlayer;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.inventory.ItemStack;
public class tpp_throw implements Listener {
    @EventHandler
    public void qwq(PlayerDropItemEvent event) {
        ItemStack item = event.getItemDrop().getItemStack();
        try {
            if (item.getItemMeta().getDisplayName().equalsIgnoreCase(ChatColor.RED + "传送快捷选择物")) {
                event.getItemDrop().getItemStack().setAmount(0);
            }else {

            }
        }catch (NullPointerException ignore) {

        }
    }
}